package com.example.glidelearningproject.fragment.transformation;

import com.example.glidelearningproject.fragment.start.PictureDialogFragment;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xpage.base.XPageSimpleListFragment;

import java.util.List;

@Page(name = "GlideV4-变换")
public class GlideTransformationsFragment extends XPageSimpleListFragment {
    @Override
    protected List<String> initSimpleData(List<String> lists) {
        lists.add("内置变换");
        lists.add("多重变换");
        return lists;
    }

    @Override
    protected void onItemClick(int position) {
        switch (position) {
            case 0:
                openPage(TransformationTypeFragment.class);
                break;
            case 1:
                PictureDialogFragment fragment = PictureDialogFragment.newInstance(5);
                fragment.show(getActivity().getSupportFragmentManager(), "DialogFragment5");
                break;
            default:
                break;
        }
    }
}
